package com.ruoyi.system.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.GoodsFlMapper;
import com.ruoyi.system.domain.GoodsFl;
import com.ruoyi.system.service.IGoodsFlService;

/**
 * 盒子分类Service业务层处理
 * 
 * @author ruoyi
 * @date 2022-05-24
 */
@Service
public class GoodsFlServiceImpl implements IGoodsFlService 
{
    @Autowired
    private GoodsFlMapper goodsFlMapper;

    /**
     * 查询盒子分类
     * 
     * @param id 盒子分类主键
     * @return 盒子分类
     */
    @Override
    public GoodsFl selectGoodsFlById(Integer id)
    {
        return goodsFlMapper.selectGoodsFlById(id);
    }

    /**
     * 查询盒子分类列表
     * 
     * @param goodsFl 盒子分类
     * @return 盒子分类
     */
    @Override
    public List<GoodsFl> selectGoodsFlList(GoodsFl goodsFl)
    {
        return goodsFlMapper.selectGoodsFlList(goodsFl);
    }

    /**
     * 新增盒子分类
     * 
     * @param goodsFl 盒子分类
     * @return 结果
     */
    @Override
    public int insertGoodsFl(GoodsFl goodsFl)
    {
        return goodsFlMapper.insertGoodsFl(goodsFl);
    }

    /**
     * 修改盒子分类
     * 
     * @param goodsFl 盒子分类
     * @return 结果
     */
    @Override
    public int updateGoodsFl(GoodsFl goodsFl)
    {
        return goodsFlMapper.updateGoodsFl(goodsFl);
    }

    /**
     * 批量删除盒子分类
     * 
     * @param ids 需要删除的盒子分类主键
     * @return 结果
     */
    @Override
    public int deleteGoodsFlByIds(Integer[] ids)
    {
        return goodsFlMapper.deleteGoodsFlByIds(ids);
    }

    /**
     * 删除盒子分类信息
     * 
     * @param id 盒子分类主键
     * @return 结果
     */
    @Override
    public int deleteGoodsFlById(Integer id)
    {
        return goodsFlMapper.deleteGoodsFlById(id);
    }
}
